/* 自定义样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 移动端优化 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 选项按钮样式 */
.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.3s ease;
}

.option-btn:hover {
    border-color: #3b82f6;
    background-color: #f3f4f6;
}

.option-btn.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* 进度条动画 */
#progressBar {
    transition: width 0.3s ease;
}

/* 等级颜色 */
.level-safe {
    color: #10b981;
}

.level-warning {
    color: #f59e0b;
}

.level-danger {
    color: #f97316;
}

.level-critical {
    color: #ef4444;
}

/* 结果区域样式 */
.result-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮禁用状态 */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 输入框焦点状态 */
input:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 响应式字体大小 */
@media (max-width: 640px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}